Page({
  data: {
    post: {
      "content":'这是一条测试微博',
      "comments":['test1','test2']
    }
  },
  onLoad(options) {
    const postId = parseInt(options.postId);
    const app = getApp();
    const posts = this.data.posts || []; // 假设帖子数据存放在 app.globalData 中
    const post = posts[postId];
    this.setData({
      post
    });
  }
});